package com.myteam.fugaocrm.contant;

import java.util.HashMap;
import java.util.Map;

public enum ENUM_DETAIL_TYPE {
	
	BILL("BILL", "开票类型"),
	PAY("PAY", "收款类型");

	ENUM_DETAIL_TYPE(String code, String value){
        this.code = code;
        this.value = value;
    }

    private String code;

    private String value;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    
    public static  Map<String, String> getBillingType(){
    	Map<String, String> map = new HashMap<String, String>();
    	map.put(BILL.getCode(), BILL.getValue());
    	map.put(PAY.getCode(), PAY.getValue());
    	return map;
    }
}
